/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.CommonAttributes;

/**
 *
 * Label for a form element (input, textarea or select).
 * 
 * <h2>Example</h2> <pre><code class="html">
 *<strong>&lt;label for="email"&gt;</strong>Email address<strong>&lt;/label&gt;
 * </strong>&lt;input type="text" name="email" id="email" /&gt;
 *</code></pre>
 *
 * @see Input
 * @see Textarea
 * @see Select
 * @author sergio.valdez
 */
public class Label extends CommonAttributes{

    /**
     * can be used to associate the label to a form element when the value of
     * for matches the value of an element's id attribute.
     */
    private String cssFor;
    /**
     * can be used to associate a keyboard shortcut to the element.
     */
    private String accesskey;

    /**
     * can be used to associate the label to a form element when the value of
     * for matches the value of an element's id attribute.
     * @return the cssFor
     */
    public String getCssFor() {
        return cssFor;
    }

    /**
     * can be used to associate the label to a form element when the value of
     * for matches the value of an element's id attribute.
     * @param cssFor the cssFor to set
     */
    public void setCssFor(String cssFor) {
        this.cssFor = cssFor;
    }

    /**
     * can be used to associate a keyboard shortcut to the element.
     * @return the accesskey
     */
    public String getAccesskey() {
        return accesskey;
    }

    /**
     * can be used to associate a keyboard shortcut to the element.
     * @param accesskey the accesskey to set
     */
    public void setAccesskey(String accesskey) {
        this.accesskey = accesskey;
    }
}
